<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/sms_riskI_script.js"></script>-->
<link rel='stylesheet' href='calendar/calendar_ahmax.css' type='text/css' />
<script src="calendar/jquery.mousewheel.min.js"></script>
<script src="calendar/calendar_ahmax.js"></script>
<script type="text/javascript">
//달력 호출
initCal("rainfo_date","Y");
</script>
</head>
<body onload="cleanPage('${requestScope.update }'); moveInsertPage('mrainfo','${requestScope.update }')">
<div class="box">
      		<h4 class="white">
      			<span class="align-left">RA정보식별</span>
	      		<span class="align-right">마감상태(정보식별및평가) :
		      		<c:choose>
		      			<c:when test="${sessionScope.magamSession[0].state =='Y'}">
		      				 마감
		      			</c:when>
		      			<c:otherwise>
		      				 착수
		      			</c:otherwise>
		      		</c:choose>
	      		</span>
      		</h4>
	 <div class="box-container2">
		 <form action="riskIAction.do" method="post" name="mrainfo" onsubmit="return false;">
		 <input type="hidden" name="pro_id" id="pro_id" value="${sessionScope.lastProId }"></input>
		 <input type="hidden" name="rainfo_ver" id="rainfo_ver"  value="${sessionScope.proDayIndex }"></input>
	 		<c:choose>
				<c:when test="${requestScope.update=='Y' }">
					 <input type="hidden" name="mode" value="mrainfo_update"></input>
					 <input type="hidden" name="rainfo_id" id="insertNum"  value="${vo.rainfo_id }"></input>
				</c:when>
				<c:otherwise>
				    <input type="hidden" name="mode" value="mrainfo_insert"></input>
				</c:otherwise>
			</c:choose>	
		 	<table class="insertTableL">
	   			<tfoot>
	   				<tr>
	   					<td>
	   					<%-- <td class="notline"><input type="button" value="새글" onclick="javascript: riskIWritePage('mrainfo_insertPage');"></input></a></td>
	   					<div class="align-right"><a href="#" class="button" onclick="javascript: mrainfo_insertAjax(); return false;"><span>등록</span></a>
	   					--%>
	   						<div class="align-left subjectTitle"> ■ RA정보프로필</div>
	                     	<div class="align-right">
	                     	
	                     	<c:choose>
	                        		<c:when test="${sessionScope.magamSession[0].state !='Y'}">
	                        		<!-- 마감 현황이 유무 판별(Y 시 입력 불가) -->
	                        			<a href="#" class="button" onclick="javascript: riskIWrite('mrainfo'); return false;"><span>저장</span></a>
	                        		</c:when>
	                        		<c:otherwise>
	                        			<a href="#" class="button1 addMargin" onclick="return false" ><span>저장</span></a>
	                        		</c:otherwise>
	                        	</c:choose>
	                     	
	                     	
	                     	<a href="#" class="button" onclick="javascript: riskICancleWrite('mrainfo')"><span>닫기</span></a></div>
	                     </td>
	   				</tr>
	   			</tfoot>
	   		</table>
	   		<table class="insertTableL">
	   			<colgroup>
	   				<col width="110px"/>
	   				<col width=""/>
	   				<col width="110px"/>
	   				<col width=""/>
	   			</colgroup>
	   			<tbody>
	   				<tr>
	   					<td class="titleName">RA 정보코드 <span class="red">＊</span></td>
	   					<td>
							 <c:choose>
								<c:when test="${requestScope.update=='Y' }">
								<%--
									<input type="text" name="rainfo_id" id="insertNum"  value="${vo.rainfo_id }"  readonly="readonly" class="width97" ></input>
									 --%>
									 ${vo.rainfo_id }
								</c:when>
								<c:otherwise>
									<input type="text" name="rainfo_id" id="insertNum"  value="${vo.rainfo_id }" maxlength="30"  class="width97" onblur="javascript: searchRainfoId(this,'${sessionScope.lastProId }')"></input>
								</c:otherwise>
							</c:choose>	
						</td>
						<td class="titleName">버전번호</td>
						<td>
							<c:choose>
								<c:when test="${requestScope.update=='Y' }">
									 ${vo.rainfo_ver }
								</c:when>
								<c:otherwise>
								   ${sessionScope.proDayIndex }		
								</c:otherwise>
							</c:choose>	
						</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">RA 정보명칭 <span class="red">＊</span></td>
	   					<td>
							 <input type="text" name="rainfo_nm" id="rainfo_nm"  value="${vo.rainfo_nm }" maxlength="50" class="width97" ></input>
						</td>
						<td class="titleName">작성일자 <span class="red">＊</span></td>
						<td>
							<input type='text' name='rainfo_date' id='rainfo_date' style='IME-MODE: disabled; width: 87%;' value='${vo.rainfo_date}' maxlength='10' onkeydown='evKeyAndDot(event)' onkeyup='inputCheckSpecial(this); setComma(this,event);' onblur="isDateMD(this)" ></input>
							<img id="rainfo_dateCal_calIcon" src="images/calendar.gif" style="vertical-align: text-bottom; cursor: pointer;"></img>
						</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">RM 담당자 <span class="red">＊</span></td>
	   					<td>
							 <input type="text" name="rainfo_writer" id="rainfo_writer" value="${vo.rainfo_writer }" maxlength="30" class="width97" ></input>
						</td>
						<td class="titleName">정보 소유자 <span class="red">＊</span></td>
						<td>
							<input type="text" name="rainfo_owner" id="rainfo_owner" value="${vo.rainfo_owner }" maxlength="30" class="width97" ></input>		
						</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">연관 프로세스 <span class="red">＊</span></td>
	   					<td>
							<input type="text" name="rainfo_proc" id="rainfo_proc" value="${vo.rainfo_proc }" maxlength="30" class="width97" ></input>
						</td>
						<td class="titleName">지역 / 사이트 <span class="red">＊</span></td>
						<td>
							<input type="text" name="rainfo_site" id="rainfo_site"  value="${vo.rainfo_site }" maxlength="30" class="width97" ></input>			
						</td>
	   				</tr>
	   				<tr>
						<td class="titleName" style="vertical-align: middle">정보기술서</td>
						<td colspan="3">
							<textarea class="textfiled" name="rainfo_doc" rows="4" id="rainfo_doc" class="width96" >${vo.rainfo_doc }</textarea>
						</td>
					</tr>
	   			</tbody>
	   		</table>
   		</form>
   		<%--
   		<br/>
   		 <div class="align-left">
			<table class="table-short1" style="width: 300px; margin-left: 80px;">
	   			<tfoot>
	   				<tr>
	   					<td>
	                     	<div class="align-left"><a href="#" class="button1"><span>RA정보자산프로필</span></a></div>
	                     </td>
	   				</tr>
	   				<tr><td class="spaceLine"></td></tr>
	   			</tfoot>
	   		</table>
	   		<table class="table-short1" style="width: 300px; margin-left: 80px;">
	   			<colgroup>
	   				<col width="80px"/>
	   				<col width="80px"/>
	   				<col/>
	   				<col width="15"/>
	   			</colgroup>
	   			<thead>
	   				<tr>
	   					<td>자산유형</td>
	   					<td>분류기준</td>
	   					<td>컨테이너명</td>
	   					<td></td>
	   				</tr>
	   			</thead>
	   		</table>
	   		<div id="tracontTable" style="overflow:auto; overflow-x: hidden; width: 380px; height:  176px">
		   		<c:choose>
					<c:when test="${requestScope.update=='Y' }">
						${requestScope.list }
					</c:when>
					<c:otherwise>
						<table class="table-short1" style="width: 300px; margin-left: 80px;">
						    <tr class="odd">
								<td style="text-align: center; height: 35px ; vertical-align: middle; " valign="middle">-정보 저장후 이용가능합니다-</td>
							</tr>
       					</table>
					</c:otherwise>
				</c:choose>
	   		</div>
	   	</div>
	   	<form action="riskIAction.do" method="post" name="tracont">
		<input type="hidden" name="mode" value="tracont_insert"></input>
		<input type="hidden" name="racont_id" id="racont_id"></input>
		<input type="hidden" name="ak_id" id="ak_id"></input>
		<div id="tracontInsertDiv" class="align-right" <c:choose><c:when test="${requestScope.update=='Y' }">style="display:"</c:when><c:otherwise>style="display:none"</c:otherwise></c:choose>>
			<table class="table-short1" style="width: 260px; margin-right: 80px;">
	   			<tfoot>
	   				<tr>
	   					<td>
	                     	<div class="align-right">
	                     	<a href="#" class="button" onclick="javascript: tracont_insertAjax(); return false;"><span>등록</span></a>
	                     	<a href="#" class="button" onclick="javascript: riskICancleWrite('mrainfo')"><span>취소</span></a>
	                     	</div>
	                     </td>
	   				</tr>
	   				<tr><td class="spaceLine"></td></tr>
	   			</tfoot>
	   		</table>
	   		<table class="insertTable" style="width: 260px; margin-right: 80px;">
			    <colgroup>
	   				<col width="80px"/>
	   				<col width="180px"/>
	   			</colgroup>
	   			<tbody>
	   				<tr>
						<th>자산유형</th>
						<td>
							<input type="text" name="ak_type" id="ak_type" maxlength="30" readonly="readonly"></input>
							 <a href="#"  onclick="javascript: openConList()" class="table-edit-link">&nbsp;</a>
						</td>
	   				</tr>
	   				<tr>
						<th>분류기준</th>
						<td>
							<input type="text" name="ak_standard" id="ak_standard" maxlength="30" readonly="readonly" ></input>
						</td>
	   				</tr>
	   				<tr>
						<th>컨테이너명</th>
						<td>
							<input type="text" name="racont_nm" id="racont_nm" maxlength="30" onkeyup="javascript: inputCheckSpecial(this)"></input>
						</td>
	   				</tr>
   				</tbody>
			</table>
	   	</div>			
	   	</form>
	   	--%>
	</div>
</div>
</body>
</html>
